#ifndef UUID_9A6B420A18A74F7B5434AC9F120EB03C
#define UUID_9A6B420A18A74F7B5434AC9F120EB03C

extern "C"
{
#include "lauxlib.h"
#include "lualib.h"
#include "luajit.h"
#include "luaext.h"
}

#include "window.hpp"
#include <flip/2d/font.hpp>

#include <flip/2d/geom_buffer.hpp>

#include <flip/2d/renderable_image.hpp>
#include <flip/raster/image.hpp>

struct luaflipData
{
	luaflipData()
	: drawBuffer(currentWindow)
	{
	}

	LuaWindow currentWindow;
	Flip::GeomBuffer drawBuffer;

	// Testing

};

extern luaflipData globalDataInstance;

inline luaflipData& globalData(lua_State* L)
{
#if 0
	return *(luaflipData*)lua_touserdata(L, lua_upvalueindex(1));
#else
	return globalDataInstance;
#endif
}

#endif // UUID_9A6B420A18A74F7B5434AC9F120EB03C
